package validator.mail;

public class MailTest {

	public static void main(String[] args) {
		String EMAIL_PATTERN = "^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*(\\.[A-Za-z]{2,})$";
		String mail = "kbailov@gmail.com";
		
		boolean matches = mail.matches(EMAIL_PATTERN);
		System.out.println("-----> " + matches);
	}
}
